<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="../gvis.js"></script>
<?php

  	require_once '../classes/gvisWriter.php';
  	$gvisJSObject = new gvisWriter(1,'areachart', 'chart_div1', "width: 400, height: 240, legend: 'bottom', title: 'Title To Area Chart'");
  	$gvisJSObject->addColType(array('State','string'));
   	$gvisJSObject->addColType(array('Population', 'number')); 
   	$gvisJSObject->addColType(array('Some Values', 'number'));     	 	 	
	$gvisJSObject->addRow(array('Virginia', 7643000, 6000000));
	$gvisJSObject->addRow(array('Florida', 18090000, 12000000));
	$gvisJSObject->addRow(array('North Dakota', 635867, 450000));			
  	echo $gvisJSObject->getScriptString();
?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Example gvisWriter.php Area Chart</title>
</head>
<body>
    <div id='chart_div1'></div>
</body>
</html>